<?PHP
	
	include("../includes/configPages.php");
	
	/* registration variables */
	
	if($_GET['args']!="null"){
		$data = explode('-', $_GET['args']);
		if(sizeof($data)==2){
			if(is_numeric($data[0]) && is_numeric($data[1])){
				$outcome = $users->validate($db, $data[0], $data[1]);
				if($outcome){
					echo $lang['auth_val_valid'];
					//$html = file_get_contents('../styles/'.$activeStyle.'/t/forum.html');
					//echo parseHtml($html, $variableStack);
				} else {
					echo $lang['auth_val_invalid'];	
				}
			} else {
				echo $lang['auth_val_invalid'];
			}
		} else {
			echo $lang['auth_val_invalid'];
		}
	} else {
		$html = file_get_contents('../styles/'.$activeStyle.'/t/login.html');
		echo parseHtml($html, $variableStack);
	}
	
	
?>
